package com.itheima.d13_api_objects;

import java.util.Objects;

public class Test {
    public static void main(String[] args) throws Exception {
        //objects类提供的常用方法
        String s1 =null;
        String s2 = "abc";

        //System.out.println(s1.equals(s2));
        System.out.println(Objects.equals(s1, s2));

        System.out.println(Objects.isNull(s1));

        System.out.println(Objects.nonNull(s2));

    }
}
